package com.hy.schedule;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * @EnableScheduling: 表示启用任务调度，它导入了 SchedulingConfiguration 调度配置类，是通过注册一个 ScheduledAnnotationBeanPostProcessor 实例实现的；
 * @EnableAsync: 表示启用任务异步执行，它导入了 AsyncConfigurationSelector 配置选择器类，其根据不同的 AOP 模式选择不同的配置类；
 * author: Mr.Du
 * Date: 2023/6/9
 * Time: 10:37
 */
@EnableScheduling
@EnableAsync
@SpringBootApplication
public class TestScheduleApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(TestScheduleApplication.class, args);
        System.out.println("End=====================");
    }
}
